'use strict';
let fs = require("fs");
let data = "hello world!";
fs.writeFile("test.txt", data,function (err, data) {
    if (err) {
        console.log(err);
    } else {
        console.log("ok");
    }
});